package com.monlyu.vo;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

import com.monlyu.annotation.Comment;

/*******************************************************************************
 * 
 * <b>功能描述☞</b>串联单<br>
 * 
 * <b>开发公司☞</b>重庆唯尼科技有限公司<br>
 * <b>版权☞</b>本文件归重庆唯尼科技有限公司所有<br>
 * <b>项目名☞</b>news<br>
 * <b>文件路径☞</b>com.monlyu.vo.Programming.java<br>
 * <b>开发日期☞</b>2010-2-9 <br>
 * 
 * @author chendan
 * @since JDK 5
 * @version 1.0.8
 * 
 ******************************************************************************/
@Entity(name = "t_programming")
public class Programming extends BaseVo {
	@Id
	@Column(name = "p_id")
	@Comment(common = "编号")
	private Long id;

	@Column(name = "p_date", nullable = false)
	@Comment(common = "播出日期")
	private Date date;

	@Column(name = "p_column", nullable = false)
	@Comment(common = "栏目")
	private Long column;

	@Column(name = "p_recorderDate")
	@Comment(common = "创建时间")
	private Date recorderDate;

	@ManyToOne
	@JoinColumn(name = "p_recorder")
	@Comment(common = "创建人")
	private User recorder;

	@Column(name = "p_audit")
	@Comment(common = "是否审核")
	private boolean audit = false;

	@Column(name = "p_auditDate")
	@Comment(common = "审核时间")
	private Date auditDate;

	@ManyToOne
	@JoinColumn(name = "p_auditUser")
	@Comment(common = "审核人")
	private User auditUser;

	@Column(name = "p_auditRemark", length = MAX_VCHAR_MYSQL)
	@Comment(common = "审核意见")
	private String auditRemark;

	public Date getRecorderDate() {
		return recorderDate;
	}

	public void setRecorderDate(Date recorderDate) {
		this.recorderDate = recorderDate;
	}

	public User getRecorder() {
		return recorder;
	}

	public void setRecorder(User recorder) {
		this.recorder = recorder;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public Long getColumn() {
		return column;
	}

	public void setColumn(Long column) {
		this.column = column;
	}

	public boolean isAudit() {
		return audit;
	}

	public void setAudit(boolean audit) {
		this.audit = audit;
	}

	public Date getAuditDate() {
		return auditDate;
	}

	public void setAuditDate(Date auditDate) {
		this.auditDate = auditDate;
	}

	public User getAuditUser() {
		return auditUser;
	}

	public void setAuditUser(User auditUser) {
		this.auditUser = auditUser;
	}

	public String getAuditRemark() {
		return auditRemark;
	}

	public void setAuditRemark(String auditRemark) {
		this.auditRemark = auditRemark;
	}

}
